package cn.jilian.trans.bizz.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.jilian.dao.UnitDAO;
import cn.jilian.trans.bizz.domain.Trans;
import cn.jilian.trans.bizz.service.TransService;


@Service
public class TransServiceImpl implements TransService {

	@Autowired
	private UnitDAO unitDAO;
	
	
	@Override
	public long add(Trans trans) {
		trans=unitDAO.save(trans);
		
		return 1;
	}

	@Override
	public int delete(long id) {
		 unitDAO.delete(id);
		 return 1;
	}

	@Override
	public int update(Trans trans) {
		return 1;
	}

	@Override
	public Trans findBySid(long sid) {
//		return unitEntity.findById(sid,transUnitType);
		return null;
	}

}
